Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Add Windows support #35

Merged
merged 2 commits into from
Jul 15, 2021
Merged

Add Windows support #35

merged 2 commits into from
Jul 15, 2021

Conversation

charlespwd
Copy link
Contributor

Fixes #5

Depends on Shopify/theme-check#364

@charlespwd charlespwd changed the title feature/windows support Add Windows support Jul 14, 2021
@bobmagicii
Copy link

bobmagicii commented Jul 14, 2021

first time caller, working on my first shopify project for a client - what is yalls release cycle like such that gem update shopify-cli will suck this up? its not lost on me that i literally found this for the first time ever only 7 hours after you committed it.

@charlespwd
Copy link
Contributor Author

Hey @bobmagicii, we typically release 1-2 times per week depending on the number of commits.

@charlespwd charlespwd requested a review from jmignac July 15, 2021 13:43
async function which(command) {
const whichCmd = isWin ? 'where' : 'which';
const { stdout } = await exec(`${whichCmd} ${command}`);
return stdout.split('\n')[0].replace('\r', '');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@@ -29,11 +29,11 @@
"url": "https://github.com/shopify/theme-check-vscode.git"
},
"scripts": {
"prebuild": "yarn && rm -rf dist language-configuration.json",
"prebuild": "yarn && rimraf dist language-configuration.json",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does && work cross platform?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like npm run somehow handles it because that's how I was running the server over there.

@@ -47,7 +48,7 @@ async function startServer() {
};

client = new LanguageClient(
'theme-check',
'shopifyLiquid',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this need to change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with the configuration. This way you can set

"shopifyLiquid.trace.server": "verbose"

In your VS Code settings.json and see the lsp logs in the Output pane. Leaving it as theme-check meant that it had to be "theme-check.server.logs" which feels out of place with the rest of the configuration options.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows support
4 participants